package com.example.springjdbc.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArticleMainPO {

    private Integer id; //主键
    private Integer user_id; //作者 ID
    private String title; //文章标题
    private String summary; //文章概要
    private Integer read_count; //阅读读数
    private LocalDateTime create_time; //创建时间
    private LocalDateTime update_time; //最后修改时间

    //模拟新增包含
    private ArticleDetailPO articleDetailPO;  //包含 博客详情

}
